home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gtk-2.0 / gdk / gdkpixbuf.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-25  |  4.0 KB  |  112 lines

  1. /* GDK - The GIMP Drawing Kit
  2.  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  3.  *
  4.  * This library is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Lesser General Public
  6.  * License as published by the Free Software Foundation; either
  7.  * version 2 of the License, or (at your option) any later version.
  8.  *
  9.  * This library is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.  * Lesser General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU Lesser General Public
  15.  * License along with this library; if not, write to the
  16.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17.  * Boston, MA 02111-1307, USA.
  18.  */
  19.  
  20. /*
  21.  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  22.  * file for a list of people on the GTK+ Team.  See the ChangeLog
  23.  * files for a list of changes.  These files are distributed with
  24.  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
  25.  */
  26.  
  27. #ifndef __GDK_PIXBUF_H__
  28. #define __GDK_PIXBUF_H__
  29.  
  30. #include <cairo.h>
  31. #include <gdk/gdktypes.h>
  32. #include <gdk/gdkrgb.h>
  33. #include <gdk-pixbuf/gdk-pixbuf.h>
  34.  
  35. G_BEGIN_DECLS
  36.  
  37. /* Rendering to a drawable */
  38.  
  39. void gdk_pixbuf_render_threshold_alpha   (GdkPixbuf           *pixbuf,
  40.                       GdkBitmap           *bitmap,
  41.                       int                  src_x,
  42.                       int                  src_y,
  43.                       int                  dest_x,
  44.                       int                  dest_y,
  45.                       int                  width,
  46.                       int                  height,
  47.                       int                  alpha_threshold);
  48. #ifndef GDK_DISABLE_DEPRECATED
  49. void gdk_pixbuf_render_to_drawable       (GdkPixbuf           *pixbuf,
  50.                       GdkDrawable         *drawable,
  51.                       GdkGC               *gc,
  52.                       int                  src_x,
  53.                       int                  src_y,
  54.                       int                  dest_x,
  55.                       int                  dest_y,
  56.                       int                  width,
  57.                       int                  height,
  58.                       GdkRgbDither         dither,
  59.                       int                  x_dither,
  60.                       int                  y_dither);
  61. void gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf           *pixbuf,
  62.                       GdkDrawable         *drawable,
  63.                       int                  src_x,
  64.                       int                  src_y,
  65.                       int                  dest_x,
  66.                       int                  dest_y,
  67.                       int                  width,
  68.                       int                  height,
  69.                       GdkPixbufAlphaMode   alpha_mode,
  70.                       int                  alpha_threshold,
  71.                       GdkRgbDither         dither,
  72.                       int                  x_dither,
  73.                       int                  y_dither);
  74. #endif /* GDK_DISABLE_DEPRECATED */
  75. void gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf    *pixbuf,
  76.                              GdkColormap  *colormap,
  77.                              GdkPixmap   **pixmap_return,
  78.                              GdkBitmap   **mask_return,
  79.                              int           alpha_threshold);
  80. #ifndef GDK_MULTIHEAD_SAFE
  81. void gdk_pixbuf_render_pixmap_and_mask              (GdkPixbuf    *pixbuf,
  82.                              GdkPixmap   **pixmap_return,
  83.                              GdkBitmap   **mask_return,
  84.                              int           alpha_threshold);
  85. #endif
  86.  
  87.  
  88. /* Fetching a region from a drawable */
  89. GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf   *dest,
  90.                      GdkDrawable *src,
  91.                      GdkColormap *cmap,
  92.                      int          src_x,
  93.                      int          src_y,
  94.                      int          dest_x,
  95.                      int          dest_y,
  96.                      int          width,
  97.                      int          height);
  98.  
  99. GdkPixbuf *gdk_pixbuf_get_from_image    (GdkPixbuf   *dest,
  100.                                          GdkImage    *src,
  101.                                          GdkColormap *cmap,
  102.                                          int          src_x,
  103.                                          int          src_y,
  104.                                          int          dest_x,
  105.                                          int          dest_y,
  106.                                          int          width,
  107.                                          int          height);
  108.  
  109. G_END_DECLS
  110.  
  111. #endif /* __GDK_PIXBUF_H__ */
  112.